--红松林
local hongsonlin = fk.CreateSkill {
    name = "mcdh_hongsonlin",
    tags = {Skill.Compulsory}
}

local U = require "packages/utility/utility"
local lib = require "packages/mcdh/lib"

hongsonlin:addEffect('maxcards',{
    correct_func = function(self, player)
        if player:hasSkill(self) then
            return #table.filter(Fk:currentRoom().alive_players,function(p) return p:hasSkill(self)  end)
        end
    end,
})

hongsonlin:addEffect('atkrange',{
    correct_func = function (self, from, to)
        if from:hasSkill("mcdh_hongsonlin") then
            return #table.filter(Fk:currentRoom().alive_players,function(p) return p:hasSkill("mcdh_hongsonlin")  end)
        end
    end,
})

Fk:loadTranslationTable {
    ["mcdh_hongsonlin"] = "红松林",
    [":mcdh_hongsonlin"] = "锁定技，你的手牌上限+1、攻击范围+X。（X为拥有本技能的角色数）"
}

return hongsonlin